//==================================================================
/// vehicle.h
///
/// Created by Davide Pasca - 2009/10/5
/// See the file "license.txt" that comes with this project for
/// copyright info. 
//==================================================================

#ifndef VEHICLE_H
#define VEHICLE_H

//==================================================================
class vehicle
{
public:
	sprite  *mpSprt;
	int		mStartPos, mPos;
	float	mSpeed;
	vehicle	*mpNext;
	float	mX;
	bool	mCheckCollision;

public:
	//==================================================================
	vehicle( sprite *pSprt, float start_x, int start_pos, float speed, bool check_collision );

	//==================================================================
	vehicle( sprite *pSprt, float start_x, int start_pos, float speed );

	//==================================================================
	void animate( float far_pos );

	//==================================================================
	bool is_drawable() const;

	//==================================================================
	void draw( graphics &g, int frame, int x, int y, float scale ) const;

};

#endif
